package com.gxa.order.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.common.commons.R;
import com.gxa.order.pojo.Consult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Array;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface ConsultMapper extends BaseMapper<Consult> {

    Integer addConsult(Consult consult);

    int updateClaimByStatus(Consult consult);

    List<Consult> queryConsult(@Param("start") Integer currentPage, @Param("off") Integer pageSize, @Param("condition") String condition);

    List<Consult> queryConsultf(@Param("start") int start, @Param("off")int off,@Param("typeOfService") Integer typeOfService);


    int updateCounselors(@Param("a") List a, @Param("b") String b);

    int updateStatusByClaim(Consult consult);

    int addAppContent(Consult consult);

    List<Consult> findConsultByUserId(@Param("appUserId")Integer appUserId);

    int CountCondition(@Param("condition") String condition);

    int CountTypeOfService(Integer typeOfService);
}
